import  request  from "@/utils/request";
export function getlist(page,limit){
  return request({
    url:`admin/product/list/${page}/${limit}`
  })
}
// 上
export function onSale(skuId){
  return request({
    url:`admin/product/onSale/${skuId}`
  })
}
export function  cancelSale(skuId){
  return request({
    url:'admin/product/cancelSale/' + skuId 
  })
}
// 获取商品
export function  getSkuInfo(skuId){
  return request({
    url:'admin/product/getSkuInfo/' + skuId
  })
}
// 新增
export function getsaveSkuInfo(data){
  return request({
    method:'post',
    url:'admin/product/saveSkuInfo',
    data
  })
}
export function deleteSku(skuId) {
  return request({
    method:'delete',
    url:'admin/product/deleteSku/' + skuId
  })
}